import Cookies from 'js-cookie'

const TokenKey = 'color_purchase_token'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}


const UnameKey = 'color_purchase_name'

export function getUname() {
  return Cookies.get(UnameKey)
}

export function setUname(e) {
  return Cookies.set(UnameKey, e)
}

export function removeUname() {
  return Cookies.remove(UnameKey)
}


const UavatarKey = 'color_purchase_avatar'

export function getUavatar() {
  return Cookies.get(UavatarKey)
}

export function setUavatar(e) {
  return Cookies.set(UavatarKey, e)
}

export function removeUavatar() {
  return Cookies.remove(UavatarKey)
}
